/*
 * @Descripttion:
 * @version:
 * @Author: ChenXiang
 * @Date: 2021-04-07 10:55:38
 * @LastEditors: ChenXiang
 * @LastEditTime: 2021-09-16 10:42:51
 */
import React, { useState } from "react";
import Input from "@/components/Input";
export default (props) => {
  // const usename = useInput({
  //   value: "",
  //   defaultValue: "898989"
  // });
  // const password = useInput({
  //   value: "",
  //   rule: {
  //     pattern: /^[0-9]*$/,
  //     message: "请输入数字"
  //   }
  // });

  // usename.onChange = (e) => {
  //   console.log("e");
  //   console.log(e);
  // };

  return (
    <div>
      1
      <Input
        append={<p>111</p>}
        onBlur={() => {
          alert(1);
        }}
        onChange={(e) => {
          console.log(e.target.value);
        }}
      />
      2
      <Input.Area
        height="300px"
        onChange={(e) => {
          console.log(e.target.value);
        }}
      />
    </div>
  );
};
